package com.rt.system.service;

import java.util.List;
import com.rt.system.domain.RtQuestionsInfo;
import org.springframework.web.multipart.MultipartFile;

/**
 * 试题Service接口
 * 
 * @author Yg
 * @date 2022-04-13
 */
public interface IRtQuestionsInfoService 
{
    /**
     * 查询试题
     * 
     * @param id 试题主键
     * @return 试题
     */
    public RtQuestionsInfo selectRtQuestionsInfoById(String id);

    /**
     * 查询试题列表
     * 
     * @param rtQuestionsInfo 试题
     * @return 试题集合
     */
    public List<RtQuestionsInfo> selectRtQuestionsInfoList(RtQuestionsInfo rtQuestionsInfo);

    /**
     * 新增试题
     * 
     * @param rtQuestionsInfo 试题
     * @return 结果
     */
    public int insertRtQuestionsInfo(RtQuestionsInfo rtQuestionsInfo);

    /**
     * 修改试题
     * 
     * @param rtQuestionsInfo 试题
     * @return 结果
     */
    public int updateRtQuestionsInfo(RtQuestionsInfo rtQuestionsInfo);

    /**
     * 批量删除试题
     * 
     * @param ids 需要删除的试题主键集合
     * @return 结果
     */
    public int deleteRtQuestionsInfoByIds(String[] ids);

    /**
     * 删除试题信息
     * 
     * @param id 试题主键
     * @return 结果
     */
    public int deleteRtQuestionsInfoById(String id,String operName);

    // 修改试题难易度
    int editDifficulty(String userName);

    // 修改试题状态
    int updateRtQuestionsInfoStatus(RtQuestionsInfo rtQuestionsInfo);

    // 查询试题统计列表
    List<RtQuestionsInfo> selectRtQuestionsInfoCountList(RtQuestionsInfo rtQuestionsInfo);

    // word导入
    String importData(MultipartFile file,Long userId,String userName) throws Exception;

    // 审核通过
    int updateRtQuestionsInfoVerityStatus(RtQuestionsInfo rtQuestionsInfo);
}
